package cn.wolfcode.service;

import cn.wolfcode.domain.Question;
import cn.wolfcode.domain.QuestionItem;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IQuestionService {
    void save(Question question);
    void delete(Long id);
    void update(Question question);
    Question get(Long id);
    List<Question> listAll();
    // 分页查询的方法
    PageInfo<Question> query(QueryObject qo);


    List<Integer> selectSingleType(Integer singleNumber);

    List<Integer> selectMultiType(Integer multiNumber);

    List<Integer> selectJudgeType(Integer judgeNumber);


    void insertSingleRelation(Long examId, Integer singleId, int i, Integer singleScore);

    void insertMultiRelation(Long examId, Integer multiId, int i, Integer multiScore);

    void insertJudgeRelation(Long examId, Integer judgeId, int i, Integer judgeScore);


    List<Question> selectQuestionAndJudgeAnswer(Long examId);

}
